<!DOCTYPE html>
<html>
<head>
    <title>赞赏</title>
    <meta http-equiv="Cache-Control" content="max-age=100">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <meta name="renderer" content="webkit">
    <meta name="format-detection" content="telephone=no">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">

    <link rel="stylesheet" type="text/css" href="../css/base.css">
</head>

<body ontouchstart="" class=" ">  
    <div class="frame_wrap" id="container">
        <div id="weread.layout.normal_layout_$" rendered="true">
            <div class="frame_body" id="weread.layout.normal_layout$layout$">
                <div id="wrpage.App.helpDetail_$" rendered="true"> 
                    <div class="detail">
                        <h1 class="title">感谢支持</h1>
                        <article class="content">
                            <p>支付宝</p>
                            <img src="../res/drawable/alipay.jpg" alt="undefined" qmui-img-addition="undefined"  width="80%" style="margin-left: 10%; margin-top: 15%; margin-bottom: 15%;" />
                            <p>微信</p>
                            <img src="../res/drawable/wechat_pay.png" alt="undefined" qmui-img-addition="undefined"  width="80%" style="margin-left: 10%; margin-top: 15%; margin-bottom: 15%;" />

                            <div id="smart-button-container">
                                <div style="text-align: center;">
                                  <div id="paypal-button-container"></div>
                                </div>
                              </div>
                            <script src="https://www.paypal.com/sdk/js?client-id=sb&enable-funding=venmo&currency=USD" data-sdk-integration-source="button-factory"></script>
                            <script>
                              function initPayPalButton() {
                                paypal.Buttons({
                                  style: {
                                    shape: 'pill',
                                    color: 'blue',
                                    layout: 'vertical',
                                    label: 'paypal',
                                    
                                  },
                          
                                  createOrder: function(data, actions) {
                                    return actions.order.create({
                                      purchase_units: [{"description":"椒盐音乐 Pro\nSalt Player Pro","amount":{"currency_code":"USD","value":0.5}}]
                                    });
                                  },
                          
                                  onApprove: function(data, actions) {
                                    return actions.order.capture().then(function(orderData) {
                                      
                                      // Full available details
                                      console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));
                          
                                      // Show a success message within this page, e.g.
                                      const element = document.getElementById('paypal-button-container');
                                      element.innerHTML = '';
                                      element.innerHTML = '<h3>Thank you for your payment!</h3>';
                          
                                      // Or go to another URL:  actions.redirect('thank_you.html');
                                      
                                    });
                                  },
                          
                                  onError: function(err) {
                                    console.log(err);
                                  }
                                }).render('#paypal-button-container');
                              }
                              initPayPalButton();
                            </script>
                        </article>
                    </div>
                    
                    <ul class="list">   
                        <li><a ontouchstart="" class="item" href="thanks.html">点击查看❤️致谢名单</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>  

    <script>
        new Aegis({
            id: 2151,
            reportApiSpeed: true,
            reportAssetSpeed: true,
        });
        ready()
    </script>

</body>

 
</html>